# CMakeLists
# Author(s): xuming.Wong <xuming.Wong@gmail.com>

#-----------------------------------------------------------------------------
# Third party dependency CEGUI CEGUIFreeImageCodec
# Setup the CEGUIFreeImageCodec lib sources

FILE(GLOB SRC *.cpp)

SET(INC .
	${PROJECT_SOURCE_DIR}/Dependencies/cegui/Base
	${PROJECT_SOURCE_DIR}/Dependencies/cegui/Base/WindowRendererSets/Falagard
	${LIBDIR}/CeguiDependencies/include
)

#add win32 preprocessors
if(WIN32)
#add this processor for have CEGUI include config.h
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
add_definitions(-DHAVE_CONFIG_H)
add_definitions(-DCEGUIFREEIMAGEIMAGECODEC_EXPORTS)
add_definitions(-DCEGUI_STATIC)

endif()

BUILD_LIB(CEGUIFreeImageCodec "${SRC}" "${INC}")

